package com.tourlaid.mamagerment.action.wx

import com.tourlaid.mamagerment.ao.wx.MyCommentAo
import com.tourlaid.mamagerment.entity.ResponseData
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.annotation.Resource

/**
 * Created by xiaoyongge on 2017/7/23.
 * 我的留言
 */
@RestController
@RequestMapping("/tld/admin/mycomment")
class MyCommentAction {

    @Resource
    var mycommentAo: MyCommentAo? = null

    /**
     * 我对别人的评论
     */
    @RequestMapping("/queryIToOther.json")
    fun queryIToOther(pageNo: Int): ResponseData<MutableList<MutableMap<String, Any?>>> {
        val responseData = mycommentAo!!.queryIToOther(pageNo)
        return responseData
    }

    /**
     * 别人对我的评论
     */
    @RequestMapping("/queryOtherToI.json")
    fun queryOtherToI(pageNo: Int): ResponseData<MutableList<MutableMap<String, Any?>>> {
        val responseData = mycommentAo!!.queryOtherToI(pageNo)
        return responseData
    }


}